package com.magina.project.mp.demo.sysuser.controller;


import com.magina.project.mp.demo.sysuser.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Magina.Hu
 * @since 2019-04-19
 */
@RestController
@RequestMapping("/sysUser")
public class SysUserController {

    @Autowired
    private SysUserService sysUserService;

    @GetMapping("/ListSysUser")
    public ResponseEntity ListSysUser(){
        return ResponseEntity.ok(sysUserService.list());
    }

}

